<?php

 class __libs_preg {
 	
	function spechar($text, $type) {
		
		$pregs = array(
			"url" => array(
				"*" => "([^\?]*)(\?(.*))"
			)
		);
		
		foreatch($pregs[$type] as $one=>$to) {
			$text = str_replace($one, $to, $text);
		}
		
	}
	
 }

?>